PROPERTY:  Link::search

object.search

Search is a property of both the Link and the Location objects and is a string beginning with a question mark that specifies any query information in an HTTP URL. It contains one or more pairs of variables and values, seperated by ampersands. Assuming a link (stored in the first element of the links property) to a URL ...

http://home.newco.com/products/enquiries.htm#local?email=name@otherco.com

...the following code would display the search property of it:

Code:
document.write(document.links[0].search)

Output:
?email=name@otherco.com

NOTE:

Although the search property can be set at any time, it is safer to set the href property to change a location.

Copyright 2000 by Infinite Software Solutions, Inc.
Trademark Information